package uk.co.q3c.deplan.client.dao;

import uk.co.q3c.deplan.client.admin.AdminObject;

/**
 * Very simple class just to hold the version number of the database. Number is Incremented when any domain object is refactored in a way
 * which affects what is stored - note that even though db4o may not be concerned about the change, the XML import / export routines
 * probably will
 * 
 * @author DSowerby 11 Oct 2008
 * 
 */
public class DatabaseVersion implements AdminObject {

	private int number;

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	// @Override
	// public void readXML(XMLImporter importer, Element element) {
	// number = XML.readElementInteger(element, "number");
	// importer.save(this);
	// }
	//
	// @Override
	// public void writeXML(Element parentElement) {
	// XML.createElement(parentElement, "number", number);
	// }
}
